import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'ant-design-vue/dist/antd.css';
import Antd from 'ant-design-vue';
import axios from "axios"
// createApp(App).use(store).use(router).use(Antd).mount('#app')
const app=createApp(App)
app.use(store)
app.use(router)
app.use(Antd)
app.mount('#app')
//使用全局属性
const instes=axios.create({
    baseURL:"http://localhost:8090"
})
//把路由设置成全局(重定向 1)
app.config.globalProperties.$router=router
app.config.globalProperties.$ajax=instes